package com.heima.feign;

import com.heima.fallback.ArticleClientFallback;
import com.heima.interceptor.FeignRequestInterceptor;
import com.heima.model.article.dtos.ArticleDto;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.search.vos.SearchArticleVo;
import com.heima.model.wemedia.pojos.WmNews;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.io.IOException;

/**
 * @author chenshan
 */
@FeignClient(value = "leadnews-search", configuration = FeignRequestInterceptor.class)
public interface SearchFeignClient {
    @PostMapping("api/v1/article/search/save")
    public ResponseResult saveArticle(@RequestBody SearchArticleVo searchArticleVo);
}
